package com.ytxg.service.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ytxg.mapper.FriendLinkMapper;
import com.ytxg.po.FriendLink;
import com.ytxg.service.IFriendLinkService;
import com.ytxg.util.resp.RestResp;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendLinkServiceImpl implements IFriendLinkService {

    @Resource
    FriendLinkMapper friendLinkMapper;

    @Override
    public RestResp<List> getlist() {
        List<FriendLink> friendLinks = friendLinkMapper.selectList(new QueryWrapper<>());

        return RestResp.ok(friendLinks);
    }
}
